package Message.BroadCast
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SBeginFight extends Object implements IMessageBase
    {
        public var attackId:int;
        public var fromEntity:SEntityId;
        public var toEntitys:Array;
        public var propertyUpdates:Array;
        public const _type:int = 50;
        public static var _regist:SBeginFight = new SBeginFight(true);

        public function SBeginFight(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBeginFight();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.attackId);
            this.fromEntity.__write(param1);
            SeqEntityIdHelper.write(param1, this.toEntitys);
            SeqAttributeUpdateHelper.write(param1, this.propertyUpdates);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.attackId = param1.readShort();
            this.fromEntity = new SEntityId();
            this.fromEntity.__read(param1);
            this.toEntitys = SeqEntityIdHelper.read(param1);
            this.propertyUpdates = SeqAttributeUpdateHelper.read(param1);
            
        }

    }
}
